package org.nf.trading.dao;


import org.nf.trading.entity.Address;

import java.util.List;

public interface AddressMapper {
    /**
     * 通过用户id查询全部地址
     * @param uid
     * @return
     */
    List<Address> listAddressByUid(Integer uid);

    int deleteByPrimaryKey(Integer addressId);

    int insert(Address record);

    /**
     * 通过id查询地址信息
     * @param addressId
     * @return
     */
    Address selectByPrimaryKey(Integer addressId);

    List<Address> selectAll();

    int updateByPrimaryKey(Address record);
}